<h1>Select a position to apply for</h1>

<table style='text-align:center'>
  <tr>
    <th>Name</th>
    <th>Number of TAs Required</th>
  </tr>

<% courses.each do |course| %>
  <tr>
    <td><%=h course.name %></td>
    <td><%=h course.required_ta %></td>
    <td><%= link_to 'Apply for Full-time', {
		:controller => 'users', 
		:action => 'ta_application', 
		:ta_position => "Full-time",
		:ta_semester => course.term,
		} %> | </td>
	<td><%= link_to 'Apply for Part-time', {
		:controller => 'users', 
		:action => 'ta_application', 
		:ta_position => "Part-time",
		:ta_semester => course.term,
		} %></td>
  </tr>
<% end %>
</table>

<br />
